<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML">
<html>
  <head>
    <title>'chacterpage.jsp'</title>
    <style type="text/css">
#content {
	width: 60%;
	min-height: 120px;
	max-height: 600px;
	_height: 120px;
	margin-left: auto;
	margin-right: auto;
	padding: 3px;
	outline: 0;
	border: 1px solid #a0b3d6;
	font-size: 12px;
	word-wrap: break-word;
	overflow-x: hidden;
	overflow-y: auto;
	_overflow-y: visible;
}
</style>
  </head>
  
  <body>
  <div id="content" contenteditable="false">${content }</div>
  	<!-- 作者登陆时，显示。然后可以 进行修改 -->
	<c:if test="${novel.author_nickname eq whologin.nickname }">
	<c:if test="${novel.author_nickname!=null}">
	 <div align="center">
	 <input type="button" value="切换修改模式" onclick="changeModify()">
	  <span id="sph">修改章节名？<input type="text" id="title" value="${chacter.title }"></span>
	 <input id="toModify" type="button" value="确认修改本章" onclick="modifyChacter('${chacter.num }','${novel.id }')">
	 </div>
	 </c:if>
	 </c:if>
	 
	 <!-- 管理员登陆 -->
	 <c:if test="${whologin.status==2 }">
	 <div align="center">
	 <input type="button" value="切换修改模式" onclick="changeModify()">
	  <span id="sph">修改章节名？<input type="text" id="title" value="${chacter.title }"></span>
	 <input id="toModify" type="button" value="确认修改本章" onclick="modifyChacter('${chacter.num }','${novel.id }')">
	 </div>
	 </c:if>
  </body>
</html>
